

<include file="public@header" />
</head>
<body>
<div class="wrap js-check-wrap">


    <table class="table table-hover table-bordered">

        <table class="layui-hide" id="test" lay-filter="test"></table>

        <script type="text/html" id="toolbarDemo">
            <div class="layui-btn-container">
<!--                <button class="layui-btn layui-btn-sm" lay-event="getCheckData">获取选中行数据</button>-->
<!--                <button class="layui-btn layui-btn-sm" lay-event="getCheckLength">获取选中数目</button>-->
<!--                <button class="layui-btn layui-btn-sm" lay-event="isAll">验证是否全选</button>-->
            </div>
        </script>
        <script type="text/html" id="barDemo">
            <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
            <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
        </script>

        <!--    自定义    -->
        <script type="text/html" id="titleTpl">
            {{#  if(d.id < 2){ }}
            小于1
            {{#  } else { }}
            大于1
            {{#  } }}
        </script>


        <script>

            var id="{$id}";
            var curl="{:url('user/adminIndex/seelogsbyid')}";

            layui.use('table', function(){
                var table = layui.table;

                var tableIns =table.render({
                    elem: '#test' ,
                    url:curl,
                    method: 'post',
                    where:{'id':id},
                    toolbar: '#toolbarDemo',
                    totalRow: true ,
                    cols: [[
                        {field:'id', title:'ID', width:80}
                        ,{field:'user_nickname', title:'用户名'}
                        ,{field:'name', title:'姓名'}
                        ,{field:'mobile', title:'电话'}
                        ,{field:'joinTime', title:'加入时间'}

                    ]]
                    ,page: true
                });

            });
        </script>


    </table>

</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>